<%@ Assembly Name="StarznetLogViewer, Version=1.1.0.0, Culture=neutral, PublicKeyToken=74e3ac9236a77c47" %>
<%@ Page Language="C#" Inherits="Starznet.SharePoint.LogViewer.ApplicationPages.Administration.LogFileViewPage" MasterPageFile="~/_admin/admin.master" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="Log File Viewer" EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" Text="Log File Viewer" EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <SharePoint:EncodedLiteral ID="EncLitDesc" runat="server" EncodeMethod='HtmlEncodeAllowSimpleTextFormatting' />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="PlaceHolderPageImage" runat="server">
	<img src="/_layouts/Starznet/StarznetPageGraphic.gif" alt="Starznet Ltd" style="margin-top:3px"/>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <style type="text/css">
    .ms-paging td
    {
        font-family:tahoma,sans-serif;
        font-size:8pt;
        font-weight:normal;
        color:#204d89;
    }
    </style>
    <table width="100%" class="propertysheet" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td class="ms-descriptionText">
                <asp:Label ID="LabelMessage" runat="server" EnableViewState="False" class="ms-descriptionText" />
            </td>
        </tr>
        <tr>
            <td class="ms-error">
                <asp:Label ID="LabelErrorMessage" runat="server" EnableViewState="False" /></td>
        </tr>
        <tr>
            <td class="ms-descriptionText">
                <asp:ValidationSummary 
                    ID="ValSummary" 
                    HeaderText="<%$SPHtmlEncodedResources:spadmin, ValidationSummaryHeaderText%>"
                    DisplayMode="BulletList" 
                    ShowSummary="True" 
                    runat="server">
                </asp:ValidationSummary>
            </td>
        </tr>
        <tr>
            <td>
                <img src="/_layouts/images/blank.gif" width="10" height="1" alt="" /></td>
        </tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="700px">
        <wssuc:InputFormSection 
            Title="Search Log Files" 
            Description="Enter search keywords and / or specify a date range to find results across all available log files"
            runat="server">
            <template_inputformcontrols>
			    <tr>
			       <td>
				    <wssuc:InputFormControl runat="server" LabelText="Search Keywords">
				        <Template_Control>
					        <SharePoint:InputFormTextBox 
					            Title="Search Keywords" 
					            CssClass="ms-input" 
					            ID="TxtKeywords" 
					            Runat="server" 
					            Width="400px"
					            MaxLength="255" />
				        </Template_Control>
			        </wssuc:InputFormControl>
			      </td>
			    </tr>
			    <tr>
			       <td>
				    <wssuc:InputFormControl runat="server" LabelText="Date Range">
				        <Template_Control>
				            Start:&nbsp;<SharePoint:DateTimeControl
				                            ID="DtStart"
				                            Runat="server" 
				                            EnableViewState="true" />
				        </Template_Control>
			        </wssuc:InputFormControl>
				    <wssuc:InputFormControl runat="server" LabelText="">
				        <Template_Control>
				            End:&nbsp;<SharePoint:DateTimeControl
				                            ID="DtEnd"
				                            Runat="server" 
				                            EnableViewState="true" />
				        </Template_Control>
			        </wssuc:InputFormControl>
			      </td>
			    </tr>
		    </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
	       <Template_Buttons>
		      <asp:Button 
		        UseSubmitBehavior="false" 
		        runat="server" 
		        CssClass="ms-ButtonHeightWidth" 
		        OnClick="BtnSearch_Click" 
		        Text="<%$Resources:wss,multipages_okbutton_text%>" 
		        id="BtnSearch" 
		        accesskey="<%$Resources:wss,okbutton_accesskey%>" 
		        CausesValidation="true"/>
		    <asp:Button 
		        UseSubmitBehavior="false" 
		        runat="server" 
		        CssClass="ms-ButtonHeightWidth" 
		        OnClick="BtnClear_Click" 
		        Text="Clear" 
		        id="BtnClear" 
		        CausesValidation="true"/>
	       </Template_Buttons>
        </wssuc:ButtonSection>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td colspan="2">
                <SharePoint:SPGridView
                    Id="GvLogFile"
                    AutoGenerateColumns="False"
                    Runat="server"
                    AllowSorting="true" 
                    AllowPaging="true" 
                    AllowFiltering="true" 
                    PagerSettings-Mode="NumericFirstLast" 
                    PagerSettings-Position="TopAndBottom"
                    PagerStyle-CssClass="ms-paging">
                    <Columns>
                        <asp:BoundField DataField="Timestamp" DataFormatString="{0:G}" HtmlEncode="false" HeaderText="Timestamp" SortExpression="Timestamp" />
                        <SharePoint:SPBoundField HeaderText="Process" DataField="Process" SortExpression="Process" />
                        <SharePoint:SPBoundField HeaderText="TID" DataField="TID" SortExpression="TID" />
                        <SharePoint:SPBoundField HeaderText="Area" DataField="Area" SortExpression="Area" />
                        <SharePoint:SPBoundField HeaderText="Category" DataField="Category" SortExpression="Category" />
                        <SharePoint:SPBoundField HeaderText="EventID" DataField="EventID" SortExpression="EventID" />
                        <SharePoint:SPBoundField HeaderText="Label" DataField="Level" SortExpression="Level" />
                        <SharePoint:SPBoundField HeaderText="Message" DataField="Message" SortExpression="Message" />
                    </Columns>
                </SharePoint:SPGridView>
            </td>
        </tr>
    </table>
</asp:Content>
